package com.doupi.partner.model;

import java.io.Serializable;
import java.util.List;

/**
 * 分页类
 * hession 传输的类要实现序列化接口，否则会抛出 readObject: unexpected end of file 这个异常
 *
 * @author zsx
 * @version 1.0.0 @ 2017-04-17
 */
public class PageData<T> implements Serializable {
    private Integer totalCount;

    private List<T> records;

    public PageData(int totalCount, List<T> records) {
        this.totalCount = totalCount;
        this.records = records;
    }

    public Integer getTotalCount() {
        return totalCount;
    }

    public void setTotalCount(Integer totalCount) {
        this.totalCount = totalCount;
    }

    public List<T> getRecords() {
        return records;
    }

    public void setRecords(List<T> records) {
        this.records = records;
    }
}
